package com.yoke.assistant.utils;

import java.util.List;

public class ListUtil {
    public static boolean isEmpty(List list){
        return list == null || list.isEmpty();
    }
    public static <T> T first(List<T> list){
        if(isEmpty(list)){
            return null;
        }
        return list.get(0);
    }
}
